﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Carousel
{
    /// <summary>
    /// 更新轮播图dto
    /// </summary>
    public class UpdateCarouselDTO : BaseUpdateDTO
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        public string? Title { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        [Required(ErrorMessage = "图片不能为空")]
        public string? Photo { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        [Required(ErrorMessage = "链接不能为空")]
        public string? Link { get; set; }
    }
}